package nowcoder.other.codem.pre2017;

import java.util.Scanner;

/**
 * @author fance
 * @date 18-6-8 下午3:29
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

        /*int[] first = new int[n];
        for (int i = 0; i < n; i++) {
            first[i] = scanner.nextInt();
        }

        int m = scanner.nextInt();

        int[] second = new int[m];
        for (int i = 0; i < m; i++) {
            second[i] = scanner.nextInt();
        }

        int minDifference = Integer.MAX_VALUE;
        for (int i = 0; i < m - n + 1; i++) {
            int tmp = 0;
            for (int j = 0; j < n; j++) {
                tmp += Math.pow(first[j] - second[j + i],2);
            }
            minDifference = Math.min(minDifference,tmp);
        }

        System.out.println(minDifference);*/
    }

}
